home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 672 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.9 KB

  1. Path: cs.mu.OZ.AU!bounce-back
  2. From: b91926@fsgi01.fnal.gov (David Sachs)
  3. Newsgroups: comp.std.c++
  4. Subject: Re: typename?
  5. Date: 09 Mar 96 04:34:13 GMT
  6. Organization: FERMILAB, Batavia, IL
  7. Approved: fjh@cs.mu.oz.au
  8. Message-ID: <4hps31$a4b@fsgi01.fnal.gov>
  9. References: <m0tupLs-000CajC@sqarc.sq.com>
  10. Reply-To: sachs@fnal.fnal.gov
  11. NNTP-Posting-Host: munta.cs.mu.oz.au
  12. X-Original-Date: 8 Mar 1996 11:51:29 -0600
  13. Return-Path: <daemon@meeker.UCAR.EDU>
  14. X-Newsreader: NN version 6.5.0 #9 (NOV)
  15. X-Auth: PGPMoose V1.1 PGP comp.std.c++
  16.     iQBFAgUBMUEKuuEDnX0m9pzZAQHtsAF8DzQgV4PD7VG1KibaJcOz4DD9ny1ECDug
  17.     e9h4A+z7f+LydBhVHoAjvu9ZX5ja8C6c
  18.     =48tp
  19. Originator: fjh@munta.cs.mu.OZ.AU
  20.  
  21. willer@carolian.com (Steve Willer) writes:
  22.  
  23. >I saw in the brochure for Borland C++ 5.0 that it will include support for
  24. >numerous new C++ features, including the "typename" keyword. Could anyone
  25. >enlighten me as to what that is? I couldn't find it in the April WP.
  26.  
  27. >This isn't equivalent to the "typeof" keyword that I want so much, is it?
  28.  
  29. The typename keyword can be found in the draft standard. It is used
  30. in template declarations to indicate that the following item is a
  31. type. It is used in several places in the library definitions in a
  32. construct like the following:
  33.  
  34. // class T is assumed to define a type xx
  35. template <class T> class U
  36. {
  37.   typedef typename T::xx xx; // Makes xx same as type xx in class T
  38.   ...
  39. }
  40. -- 
  41. ***** Listen Americans, the IRS is your taxer,  the IRS is one. *****
  42. David Sachs - Fermilab, HPPC MS369 - P. O. Box 500 - Batavia, IL 60510
  43. Voice: 1 708 840 3942      Deparment Fax: 1 708 840 3785
  44. ---
  45. [ comp.std.c++ is moderated.  To submit articles: try just posting with      ]
  46. [ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu         ]
  47. [ FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html    ]
  48. [ Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
  49. [ Comments? mailto:std-c++-request@ncar.ucar.edu                             ]
  50.